<!--买家退款详情页面-->
<template>
  <div>
    <div>
      <van-nav-bar title="买家退款详情" left-arrow @click-left="closeWin" :border="false">
        <van-icon name="arrow-left" slot="left" color="#000" size="20" />
      </van-nav-bar>
    </div>
    <part6></part6>
    <!-- <part11></part11> -->
    <part7></part7>
    <!-- <div class="btn" @click="link('/market/orders/refunds')">提交申请</div> -->
  </div>
</template>

<script>
import part6 from "_c/markets/refund/part6.vue";
import part7 from "_c/markets/refund/part7.vue";
import part11 from "_c/markets/refund/part11.vue";
import { getFun, getTimer } from "@/api/publicFun.js";
let publicFun = getFun();
export default {
  name: "orderDetail",
  components: {
    part6,
    part7,
    part11,
  },
  data() {
    return {
      userId:'',
      ordersId:'',
      refundId:'',
      tip:'',
      url1: this.$api+'/marketorderservice/api/v1/market/orders', // 获取订单详情的接口
      goodsId:'',//商品
		  nickName:'',//昵称
		  buyerId:'',//买家
      sellerId:'',//卖家
      goodsCoverUrl:'',//商品图片
      avatar:'',//买家头像
      savatar:'',//卖家头像
      refundImage:'',
      
    };
  },
  methods: {
    isFinish(){
      return this.hasPay;
    },
    //获取
    getData() {
      let that = this;
      this.$Axios2
        .Get(this.url1 + "/" + this.ordersId + "/" + this.userId)
        .then(function(res) {
          that.goodsId = res.data.orders.goodsId;
          that.nickName = res.data.orders.nickName;
		      that.buyerId = res.data.orders.userId;
          that.sellerId = res.data.orders.suserId;
          that.goodsCoverUrl = res.data.orders.goodsImage;
          that.avatar = res.data.orders.avatar;//买家头像
          that.savatar = res.data.orders.savatar;//买家头像
          that.getIm(that.goodsId,that.nickName,that.buyerId,that.sellerId,that.goodsCoverUrl,that.savatar,that.ordersId);
        });
    },
  },
  mixins: [publicFun], //混入
  mounted() {
    this.userId = this.$router.currentRoute.query.userId;
    this.refundId = this.$router.currentRoute.query.refundId;
    this.ordersId = this.$router.currentRoute.query.ordersId;   
    this.tip = this.$router.currentRoute.query.tip;
    // this.getData();
  }
};
</script>

<style scoped="">
.wrap {
  padding: 25px 30px;
  text-align: center;
}
.foot {
  position: fixed;
  bottom: 5px;
  text-align:center;
  margin: 0 auto;
  left:20%;
}
.btn {
  width: 100%;
  height: 40px;
  font-size: 16px;
  text-align: center;
  line-height: 40px;
  background-color: #ffd630;
  position: fixed;
  bottom: 0;
}
</style>